package com.budayi.common.exception;

import lombok.Getter;

/**
 * 自定义异常
 */
@Getter
public class BlException extends RuntimeException {
    private int status;

    public BlException(int status, String message) {
        super(message);
        this.status = status;
    }

    public BlException(int status, String message, Throwable cause) {
        super(message, cause);
        this.status = status;
    }

    public BlException(ExceptionEnum enums) {
        super(enums.getMessage());
        this.status = enums.getStatus();
    }
}
